 <?php ob_start();
require('includes/connect.php');
    	$user_id = $_POST["user_id"];
    	$fname = $_POST["fname"];
		$lname = $_POST["lname"];
		$address = $_POST["address"];
		$phone = $_POST["phone"];
		$mob = $_POST["mob"];
		$username = $_POST["username"];
		

$sql="Update users set `fname`='$fname',`lname`='$lname',`address`='$address',`phone`='$phone',`mob`='$mob',`username`='$username' where user_id=".$user_id;
$result=mysql_query($sql);
		
		if($result)
						{
	
					header("location:user.php");
		}
	else {
		//header("location:edit_user.php");
		echo mysql_error();
	}
	
ob_flush();	?>




